import Vue from 'vue'
import Vuex from 'vuex'

import user from './modules/user'

// default router permission control
// 默认路由模式为静态路由 (router.config.js)

// dynamic router permission control (Experimental)
// 动态路由模式（api请求后端生成）
// import permission from './modules/async-router'

// import getters from './getters'

Vue.use(Vuex)

export default new Vuex.Store({
    modules: {
        user,
    },
    state: {},
    mutations: {},
    actions: {},
    // getters
})
